<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/jquery-3.5.1.min.js"></script>
    <link rel="stylesheet" href="../css/bootstrap4.5.min.css">
    <link rel="stylesheet" href="../css/public.css">
    <link rel="stylesheet" href="../css/swiper-bundle.min.css">
    <script src="../js/swiper-bundle.min.js"></script>
    <script>
        $(function () {
            var mySwiper = new Swiper('.carousel_head', {
                autoplay: true,
                loop: true,
                slideClass: 'carousel_head_slide',
                pagination: {
                    clickable :true,
                    el: '.carousel_head_pagination',
                    bulletElement : 'li',
                    bulletActiveClass: 'head_slide_acitive'
                },
            })
        })
    </script>
    <style>
        .carousel_head_bg {
            width: 100%;
            max-height: 810px;
            object-fit: cover;
        }

        .carousel_head_pagination {
            display: flex;
            width: 100% !important;
            justify-content: center;
            position: absolute;
            z-index: 15;
            bottom: 40px !important;
        }

        .carousel_head_pagination li {
            background-color: gray;
            width: 13px;
            border-radius: 2px;
            height: 4px;
            transition: width 0.3s, background-color 0.3s;
        }

        .carousel_head_pagination li.head_slide_acitive {
            background-color: white;
            opacity: 1;
            width: 26px;
        }

        @media (max-width:1240px) {
            .carousel_head_bg {
                height: 625px;
            }
        }

        @media (max-width:768px) {
            .carousel_head_bg {
                height: auto;
            }

            .carousel_head_navigation {
                display: none;
            }

            .carousel_head_pagination li{width: 5px;}
            .carousel_head_pagination li.head_slide_acitive {width: 10px;}
            .carousel_head_pagination {bottom: 10px !important;}
        }
    </style>
</head>

<body>
    <div class="carousel carousel_head swiper-container modular">
        <ul class="swiper-wrapper">
            <li class="swiper-slide carousel_head_slide">
                <img class="carousel_head_bg"
                    src="https://17345546.s61i.faiusr.com/2/AD0IitiiCBACGAAgiOal3gUoqKm_uQMw_g44qgY.jpg" alt="">
            </li>
            <li class="swiper-slide carousel_head_slide">
                <img class="carousel_head_bg"
                    src="https://17345546.s61i.faiusr.com/2/AD0IitiiCBACGAAggual3gUozPzb8wcw_g44qgY.jpg" alt="">
            </li>
            <li class="swiper-slide carousel_head_slide">
                <img class="carousel_head_bg"
                    src="https://17802134.s61i.faiusr.com/2/AD0Ilse_CBACGAAgueef3gUo2NCjjQIw_g44uQY.jpg" alt="">
            </li>
        </ul>
        <ul class="carousel_head_pagination">
        </ul>
    </div>
</body>

</html>